package com.chenyongjing.design.pattern.flyweight.ticket;

public class Test {
    public static void main(String[] args) {
        ITicket ticket = TicketFactory.queryTicket("广州东","成都东");
        ticket.showInfo("硬座");
        ticket = TicketFactory.queryTicket("广州东","成都东");
        ticket.showInfo("软座");
        ticket = TicketFactory.queryTicket("广州东","双流");
        ticket.showInfo("硬卧");
    }
}
